package com.qf.elasticsearch.query;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * create by 郑大仙丶
 * 2019/11/21 19:43
 */
public interface QueryMatchService {


    //1. 查询全部
    List<Map<String,Object>> matchAll(String index,String type) throws IOException;

    //2. 条件查询
    List<Map<String,Object>> match(String index,String type,String name,String value) throws IOException;

    //3. multi条件查询
    List<Map<String,Object>> matchMulti(String index,String type,String value,String[] fields) throws IOException;

    //3. phrase短句查询
    List<Map<String,Object>> matchPhrase(String index,String type,String name,String value) throws IOException;


}
